package com.fangyouyun.config;

import org.aopalliance.intercept.Joinpoint;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {

    private static Logger log = LoggerFactory.getLogger(MyAspect.class);

    @Before(value = "execution(* com.fangyouyun.service.UserServiceImpl.*(..))")
    public void before(JoinPoint jp){
        log.info("before..................log");
    }
}
